package com.zhi.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.*;

/**
 * 班级定义表
 */
@Entity
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Grade {

    //班级id
    @Id
    private String gradeId;

    //院系id
    @Column(nullable = false)
    private String facultyId;

    //班级名称
    @Column(nullable = false)
    private String gradeName;

    //指导员
    @Column(nullable = false)
    private String instructor;

    //该班级的任课教师，Transient注解，不对应数据库Grade表中字段
    @Transient
    private String teacherIds;

}
